package com.team.six.bluecatshop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@Controller
public class ShowController {

    @RequestMapping(value = {"/","index"})
    public void index(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/product/list").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }



    @RequestMapping(value = {"/404"})
    public String notFound(){

        return "404";
    }

}
